package com.l_abstract;

import java.util.Arrays;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/15 16:31
 */
public class Teacher extends Employee {
    public Teacher() {
    }

    public Teacher(String name, int age) {
        super(name, age);

    }

    @Override
    public void work() {
        System.out.println("老师正在授课");
    }

//    public static void main(String[] args) {
//        // 抽象类不能实例化
////        Employee employee = new Employee();
//
//
//    }

}
